import { createApp } from "vue";
import App from "@/App";
import router from "@/router";
import { useSetupStore } from "@/stores";

import "@/permission"; // 路由鉴权
import "@/styles/index.scss";
import "uno.css";
// 本地SVG图标
import "virtual:svg-icons-register";

const app = createApp(App);

// 全局注册状态管理 Store
useSetupStore(app);
// 全局注册路由管理 VueRouter
app.use(router);

app.mount("#app");
